<?php
$configDir = dirname(__FILE__);
$applicationDir = dirname($configDir);
Yii::setPathOfAlias('web', $applicationDir . DIRECTORY_SEPARATOR . 'web');
Yii::setPathOfAlias('widgets',
	$applicationDir . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'widgets');
Yii::setPathOfAlias('components',
	$applicationDir . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR . 'components');

Yii::setPathOfAlias('public', dirname($applicationDir) . DIRECTORY_SEPARATOR . 'web');

return array(
	'basePath' => dirname(dirname(__FILE__)),
	'name' => '建祥',
	'language' => 'zh_cn',
	// preloading 'log' component
	'preload' => array(
		'log'
	),
	// autoloading model and component classes
	'import' => array(
		'components.web.*',
		'components.auth.*',
		'components.models.*',
		'application.common.models.*',
		'web.models.*',
	),
	'components' => array(
		'db' => array(
			'connectionString' => 'mysql:host=localhost;dbname=erp',
			'emulatePrepare' => false,
			'username' => 'erp',
			'password' => 'erp',
			'tablePrefix' => 'erp_',
			'charset' => 'utf8',
		),
	),
);
